All Questions
2 questions
-2votes
2answers
773views
What is the best way to run untrusted hooks/plugins?
I'm building a data processing system where users can submit hooks to execute on incoming data. The hooks are untrusted and should execute in a sandbox with access only to a limited API that I expose ...
26votes
3answers
4kviews
What should plugins use: hooks, events or something else?
Consider an app that allows plugins to react to its program flow. I know 2 ways to achieve this: hooks and events 1. Hooks Use calls to empty functions inside the main program flow. These functions ...